<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <link rel="Shortcut Icon" href="/static/img/ico/favicon.ico" type="image/x-icon"/>
    <link rel="pingback" href="https://www.waitsun.com/xmlrpc.php"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no, minimal-ui">
    <meta http-equiv="X-UA-Compatible" content="IE=9; IE=8; IE=7; IE=EDGE;chrome=1">
    <title>thisding 资源共享网</title>
    <link rel='stylesheet' id='carousel-css'
          href="../../static/web/wp-content/themes/WU/includes/css/owl.carousel.min.css-ver=WU.css"
          type='text/css' media='all'/>
    <link rel='stylesheet' id='animate-css'
          href="../../static/web/wp-content/themes/WU/includes/css/animate.min.css-ver=WU.css"
          type='text/css' media='all'/>
    <link rel='stylesheet' id='bootstrap-css'
          href="../../static/web/wp-content/themes/WU/includes/css/bootstrap.min.css-ver=WU.css"
          type='text/css' media='all'/>
    <link rel='stylesheet' id='fontello-css'
          href="../../static/web/wp-content/themes/WU/includes/font-awesome/css/fontello.css-ver=WU.css" type='text/css'
          media='all'/>
    <link rel='stylesheet' id='reset-css' href="../../static/web/wp-content/themes/WU/includes/css/reset.css-ver=WU.css"
          type='text/css'
          media='all'/>
    <link rel='stylesheet' id='style-css' href="../../static/web/wp-content/themes/WU/style.css-ver=WU.css"
          type='text/css'
          media='all'/>
    <link rel='stylesheet' id='devework-shortcodes-css'
          href="../../static/web/wp-content/plugins/S-Shortcodes/includes/shortcodes.css-ver=2.4.0.css" type='text/css'
          media='all'/>
    <link rel='stylesheet' id='devework-shortcodes-fontello-css'
          href="../../static/web/wp-content/plugins/S-Shortcodes/includes/css/fontello.css-ver=2.4.0.css"
          type='text/css' media='all'/>
    <link rel="stylesheet" href="../../static/backstage/lib/layui/css/layui.css">
    <script type='text/javascript' src="../../static/web/wp-includes/js/jquery/jquery.js"></script>
    <script type='text/javascript' src="../../static/web/wp-includes/js/jquery/jquery-migrate.min.js"></script>
    <script src="../../static/backstage/lib/layui/layui.js" charset="utf-8"></script>
    <meta name="keywords" content="Mac软件下载,Mac游戏下载,苹果电脑软件下载,Mac软件网站"/>
    <meta name="description" content="致力于分享优秀的Mac应用软件，介绍Mac的使用技巧，最有价值的Mac软件免费分享，提供最新Mac破解软件免费下载。"/>
    <style>
        #top-slide .owl-item .slider-content .post-categories a,
        #top-slide .owl-item .slider-content .slider-titleh2:after,
        #top-slide .owl-item .slider-content .read-more a:hover,
        .posts-default-title h2:after,
        #ajax-load-posts a,
        #ajax-load-posts span,
        #ajax-load-posts button,
        .post-title .title:after,
        #commentform .form-submit input[type='submit'],
        .tag-clouds .tagname:hover,
        .cat ul li .title span,
        #top-slide-three .slider-content .slider-content-box .slider-content-item .post-categories a {
            background-color: #ca0c16;
        }

        a:hover,
        .authors_profile .author_name a {
            color: #ca0c16;
        }

        #ajax-load-posts a:hover,
        #ajax-load-posts button:hover {
            background-color: #273746
        }

        #header .search-box form button:hover,
        #header .primary-menu ul > li > a:hover,
        #header .primary-menu ul > li:hover > a,
        #header .primary-menu ul > li.current-menu-ancestor > a,
        #header .primary-menu ul > li.current-menu-item > a,
        #header .primary-menu ul > li .sub-menu li.current-menu-item > a,
        #header .primary-menu ul > li .sub-menu li a:hover,
        #menu-mobile a:hover {
            color: #ca0c16;
        }

        @media screen and (max-width: 767px) {
            #header .search-box form button {
                background-color: #ca0c16;
            }
        }

        .comment-form-smilies .smilies-box a:hover {
            border-color: #ca0c16
        }



        .right {
            float: left;
            margin-left: 20px;
            margin-top: 30px;
            width: calc(100% - 220px);
        }

        h3 {
            margin: 10px 0;
        }

        .box {
            height: 500px;
            background: rgba(255, 255, 255, 1);
            border-radius: 20px;
        }

        .title {
            font-size: 18px;
            font-family: MicrosoftYaHei;
            font-weight: 400;
            color: rgba(96, 96, 96, 1);
            padding-left: 24px;
            line-height: 60px;
            border-bottom: 2px solid rgba(241, 243, 253, 1);
        }

        ul {
            width: 100%;
        }

        a:hover {
            text-decoration: none;
            color: #333;
        }

        .box ul li {
            float: left;
            width: 25%;
            text-align: center;
            height: 140px;
            padding-top: 48px;
        }

        ul li img {
            width: 60px;
        }

        .input_pwd {
            width: 100%;
            line-height: 80px;
            font-size: 14px;
            color: #888888;
            padding-left: 8%;
        }

        .ercode img {
            width: 136px;
        }

        .dian{
            border-color: red;
            border-width: initial;
            height: 66px;
            margin-bottom: 0px;
        }
        .reset_pwd{
            width: 100%;
            height: 100%;
            padding: 5%;
        }
        .reset_pwd input{
            width: 300px;
            height: 30px;
            font-size: 16px;
        }
    </style>



</head>

<body class="home blog off-canvas-nav-left" style="background: url(/static/img/body_bg.jpg);" >

<div th:replace="web/common/head :: header(${session.navBarList})"></div>

<div id="page-content">
    <div class="container">
        <div th:replace="web/common/mine_left :: mine_left"></div>

        <div class="right">
            <div class="box">
                <div class="title">
                    修改密码
                </div>
                <div class="reset_pwd">
                    <form method="post"  id="reset_pwd_form" class="layui-form">
                        <div class="layui-form-item">
                            <label class="layui-form-label" style="width: 40%">请输入新密码：</label>
                            <div class="layui-input-block">
                                <input type="password" placeholder="请输入新密码" id="pwd" name="pwd" class="layui-input" />
                            </div>
                        </div>

                        <div class="layui-form-item">
                            <label class="layui-form-label" style="width: 40%">请重复新密码：</label>
                            <div class="layui-input-block">
                                <input type="password" placeholder="请重新输入新密码" id="repwd" name="repwd" class="layui-input" />
                            </div>
                        </div>
                        <div class="layui-form-item" style="text-align: center;margin-left: -10px">
                            <div class="layui-input-block">
                                <button class="layui-btn" lay-submit lay-filter="*" onclick="resetPwd()">立即提交</button>
                                <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                            </div>
                        </div>
                        <p id="msg"></p>
                    </form>
                </div>
                </div>
            </div>
        </div>
    </div>
</div>

<div th:replace="web/common/foot::footer"></div>



<script>

    function resetPwd(){
        var pwd=$('#pwd').val();
        var repwd=$('#repwd').val();
        if (pwd!=repwd){
            layer.alert("两次输入的密码不一致！")
            return false;
        }

        $.ajax({
            type: "POST",
            url: "/download/sys-user/updatePwd",
            data: {"pwd": $('#pwd').val(), "userId": [[${session.user.id}]]},
            dataType: 'text',
            success: function (data) {
                console.log(data)
                $("#msg").html(data);
                $("#msg").css("color","green");
            },error:function (data) {
                console.log(data)
            }
        });
        return false;
    }

    
</script>

<!--ADD_CODE_FOOTER_END-->
<script type='text/javascript'>
    /* <![CDATA[ */
    var suxingme_url = {
        "url_ajax": "https:\/\/www.waitsun.com\/wp-admin\/admin-ajax.php",
        "url_theme": "https:\/\/www.waitsun.com\/wp-content\/themes\/WU",
        "slidestyle": "index_slide_sytle_3",
        "wow": "1",
        "sideroll": "1",
        "duang": ""
    };
    /* ]]> */
</script>
<script type='text/javascript' src="wp-content/themes/WU/js/bootstrap.min.js"></script>
<script type='text/javascript' src="wp-content/themes/WU/js/plugins.min.js"></script>
<script type='text/javascript' src="wp-content/themes/WU/js/suxingme.js"></script>
<script type='text/javascript' src="wp-content/themes/WU/js/owl.carousel.min.js"></script>
<script type='text/javascript' src="wp-content/themes/WU/js/wow.min.js"></script>
</body>

</html>
<!-- Dynamic page generated in 0.588 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2019-02-12 11:49:18 -->

<!-- Compression = gzip -->
<!-- super cache -->